package auction.model;

import java.util.*;

public class ItemWithListBids{
	private Long id;
	private String title;
	
	private List<BidWithList> bids=new ArrayList<BidWithList>();
	
	public ItemWithListBids(){
	}
	
	public ItemWithListBids(String t){
		title=t;
	}
	
	public Long getId(){
		return id;
	}
	public void setId(Long i){
		id=i;
	}
	
	public void setBids(List<BidWithList> i){
		bids=i;
	}
	public List<BidWithList> getBids(){
		return bids;
	}
	/* GOOD!!! */
	public void addBid(BidWithList bid){
		//System.out.println("GOOD!!!");
		//bid.setItem(this);
		bids.add(bid);
	}
	
	public void setTitle(String i){
		title=i;
	}
	public String getTitle(){
		return title;
	}
}